import { RequestService } from './../service/service.service';
import { Component, OnInit } from '@angular/core';


@Component({
  selector: 'app-detail',
  templateUrl: './detail.component.html',
  styleUrls: ['./detail.component.scss']
})
export class DetailComponent implements OnInit {

  constructor(private request: RequestService) { }

  ngOnInit() {
    this.request.get('/get-data').subscribe(res => {
      console.log(res)
    })
  }

}
